package org.example.login.Strategy;


import org.example.feign.pojo.Customer;
import org.example.feign.pojo.UserInfo;
import org.example.feign.pojo.UserInfo1;

public class ConcreteStrategyB implements Strategy {


    @Override
    public Customer getCustomer() {
        return customer;
    }

    public void strategyMethod(UserInfo userInfo, String code, UserInfo1 userInfo1) {

        String gender = userInfo1.getGender();
        String phone = userInfo1.getPhone();
        String Name=userInfo1.getName();

        int age=userInfo1.getAge();
        System.out.println("Phone: " + phone);
        System.out.println("Gender: " + gender);
        System.out.println("Age: " + age);
        System.out.println("phone: " +phone);
        System.out.println("name: " +Name);

        customer.setGender(gender);
        customer.setPhone(phone);
        customer.setCode(code);
        customer.setAge(age);
        customer.setName(Name);

    }
}
